#include<bits/stdc++.h>
using namespace std;
int t,n;
int a[200010],ans[320000];
int tot=0;
int dfs(int x,int falg0,int flag1){

    dfs(x+1);
    dfs();
        int c1,c2;
        if(a[x]!=a[falg0])
            c1=0;
        else c1=a[x];

        if(a[x]!=a[falg1])
            c2=0;
        else c2=a[x];

}
int main(){
    freopen("text.in","r",stdin);
    freopen("text.out","w",stdout);
    cin>>t;
    while(t--){
        cin>>n;
        for(int i=1;i<=n;i++){
            cin>>a[i];
        }
        for(int i=1;i<=n;i++){

        }
    }
    fclose(stdin);
    fclose(stdout);
return 0;
}

